package leetcode.code0810;

public class Solution1 extends Solution810 {

	@Override
	public boolean xorGame(int[] nums) {
		int sum = 0;
		for (int num : nums) {
			sum ^= num;
		}
		return sum == 0 || (nums.length & 1) == 0;
	}

	public static void main(String[] args) {
		Solution so = new Solution();
		so.debug1();
		so.debug2();
		so.debug3();
	}

}
